package mission2.GUI;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JTextArea;

public class AnalyseActionListener implements ActionListener {
	
	private JTextArea expression;
	private JTextArea expressionDerive;

	public AnalyseActionListener(JTextArea expression, JTextArea expressionDerive) {
		this.expression=expression;
		this.expressionDerive=expressionDerive;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		expressionDerive.setText(expression.getText());
		
	}

}
